#include <iostream>
using std::cout;
using std::endl;

class Point
{
public:
    Point(int x,int y/*,int z*/)
    :_ix(x)
    ,_iy(y)
    //,_iz(z)
    ,_iz(_ix)
    {}

    void print(){
        cout << "(" << this->_ix
            << "," << this->_iy
            << ","<< this->_iz
            << ")" << endl;
    }

private:
    int _ix;
    int _iy;
    int & _iz = _iy;
};

void test0(){
    Point pt1(10,20/*,10*/);
    pt1.print();

    Point pt2 = pt1;
    pt2.print();
}

int main(int argc, char * argv[])
{
    test0();
    return 0;
}


